package com.supplychainapi.dao.prod;

import com.supplychainapi.model.ScmTbsupplier;
import com.supplychainapi.model.ScmTbsupplierExtend;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface ScmTbsupplierMapper extends Mapper<ScmTbsupplier>{

	ScmTbsupplier getSupplierInfo(String fsSupplierId);


	ScmTbsupplier getSupplierByFsSupplierNameInfo(String fsSupplierName);


	List<ScmTbsupplier> getSupplierByfsNodeFullTextList(@Param("fsShopGUID")String fsShopGUID,@Param("fsNodeFullText")String fsNodeFullText, @Param("page")Integer page, @Param("pageSize")Integer pageSize);


	void deleteSupplierInfo(Map<String, Object> parameterMap);


	List<ScmTbsupplier> getByKeyWordSupplierInfoList(@Param("keyWord")String keyWord, @Param("page")Integer page, @Param("pageSize")Integer pageSize);


	ScmTbsupplier getSupplierByFsShopGUIDList(@Param("fsShopGUID")String fsShopGUID, @Param("fsSupplierId")String fsSupplierId);


    String getMaxCode(@Param("fsShopGUID") String fsShopGUID);

	List<ScmTbsupplier> getSupplierPhoneListInfo(@Param("fsShopGUID")String fsShopGUID, @Param("fsNodeCode")String fsNodeCode, @Param("page")Integer page, @Param("pageSize")Integer pageSize);


    List<ScmTbsupplierExtend> getSupplierPhoneByFsSupplierNameListInfo(@Param("fsShopGUID") String fsShopGUID, @Param("fsSupplierName") String fsSupplierName, @Param("page") Integer page,
                                                                       @Param("pageSize") Integer pageSize);


    ScmTbsupplierExtend getSupplierPhoneDetailsInfo(@Param("fsShopGUID") String fsShopGUID, @Param("fsSupplierId") String fsSupplierId);


    List<ScmTbsupplierExtend> getSupplierAllPhoneListInfo(@Param("fsShopGUID") String fsShopGUID, @Param("page") Integer page, @Param("pageSize") Integer pageSize);


    List<ScmTbsupplierExtend> getSupplierParentAllPhoneListInfo(@Param("fsShopGUID") String fsShopGUID, @Param("fsNodeCode") String fsNodeCode, @Param("page") Integer page,
                                                                @Param("pageSize") Integer pageSize);


	Integer getSupplierNameIsExit(@Param("fsShopGUID")String fsShopGUID, @Param("fsSupplierName")String fsSupplierName);


	List<ScmTbsupplier> getSupplierListInfo(@Param("fsShopGUID")String fsShopGUID, @Param("keyWord")String keyWord, @Param("fsNodeCode")String fsNodeCode);
	
	//List<ScmTbsupplier> getSupplierListInfo(@Param("fsShopGUID")String fsShopGUID, @Param("keyWord")String keyWord, @Param("fsNodeCode")String fsNodeCode,@Param("page")Integer pageNum,@Param("pageSize")Integer pageSize);


	List<ScmTbsupplier> getChoiceSupplierListInfo(@Param("fsShopGUID")String fsShopGUID, @Param("keyWord")String keyWord, @Param("fsNodeCode")String fsNodeCode);


    ScmTbsupplierExtend getSupplierDetailsInfo(@Param("fsShopGUID") String fsShopGUID, @Param("fsSupplierId") String fsSupplierId);


    List<ScmTbsupplier> getHeadquartersSupplierInfo(String fsShopGUID);


    List<ScmTbsupplierExtend> getSupplierKeyWordListInfo(@Param("fsShopGUID") String fsShopGUID, @Param("keyWords") String keyWords, @Param("page") Integer page,
                                                         @Param("pageSize") Integer pageSize);

	
	


}